<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/10
 * Time: 10:38
 */

namespace app\flower\model;
use think\Model;

class FlowerOrderchangeModel extends Model
{
    /**
     * @param $dotime
     * @return bool|string
     * 转换时间格式
     */
   protected  function getDottimeAttr($dottime){
        if(empty($dottime)){
            return $dottime;
        }else{
            return date('Y-m-d H:i:s',$dottime);
        }
   }
  /**
     * @param $dotime
     * @return bool|string
     * 转换时间格式
     */
    protected  function getTimeAttr($time){
        if(empty($time)){
            return $time;
        }else{
            return date('Y-m-d H:i:s',$time);
        }
    }
}